package allTests;

import operation.DialogOperation;
import operation.Operation;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import socketEnv.CrossProperties;

/**
 * Created by hanyz on 2016/9/18.
 */
public class TestPrepare {

    public static String iDesktopTitle = "SuperMap iDesktop Cross 8C";

    @BeforeClass
    public static void setIDesktopTitle(){
        try {
            iDesktopTitle = CrossProperties.getProperty(CrossProperties.PropertiesEnum.Core, "String_MessageBox_Title");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    @Test
    public void closeWindowOnShow(){
        new DialogOperation().closeWindow(iDesktopTitle);
    }
}
